<html>
<head>
	<title>GT Project Manager - Dashboard</title>
	<link rel="stylesheet" type="text/css" href="main.css" />
	<link rel="stylesheet" type="text/css" href="inner.css" />
</head>
<body>
	<table cellspacing="0" cellpadding="0" id="main">
		<tr><td id="title">
			Dashboard for {{ user.first_name }} {{ user.last_name }}
			<div class="nav">
				<a href="login.html">Log Out</a><br />
				<a href="dashboard.html">Dashboard</a><br />
				<a href="project_tasks.html">Project Tasks Report</a><br />
				<a href="employee_tasks.html">Employee Tasks Report</a>
			</div>
		</td></tr>
		<tr>
			<td>
				<table class="subsection summary" cellspacing="0" cellpadding="0">
					<tr><td class="title" colspan="3">
						My Projects
						<hr size="1" />
						<div class="link">
							<a href="project_info.html">New Project</a>
						</div>
					</td></tr>
					<tr>
						<th>ID</th>
						<th>Project Title</th>
						<th>My Role</th>
					</tr>
					{% for currProject in userProjects %}
					<tr>
						<td>{{ currProject.p_id }}</td>
						<td><a href="project_info.html">{{ currProject.title }}</a></td>
						<td>{% if currProject.manager == user.email %}Manager{% else %}Team Memeber{% endif %}</td>
					</tr>
					{% endfor %}
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table class="subsection summary" cellspacing="0" cellpadding="0">
					<tr><td class="title" colspan="4">
						My Tasks
						<hr size="1" />
					</td></tr>
					<tr>
						<th>Task Name</th>
						<th>Project Title</th>
						<th>Due Date</th>
					</tr>
					{% for currTask in allTasks %}
					<tr {% if currTask.isLate %}class="late"{% endif %}>
						<td><a href="task_info.html">{{ currTask.name }}</a></td>
						<td>{{ currTask.projectName }}<td>
						<td>{{ currTask.due_date|date:"n-j-Y"</td>
					</tr>
					{% endfor %}
				</table>
			</td>
		</tr>
	</table>
</body>
</html>